
package com.insigma.business.qrcode.soldier._consumer.impl;


import com.insigma.business.qrcode.common.template.BasePagingResponse;
import com.insigma.business.qrcode.common.vo.BaseDeleteRequest;
import com.insigma.business.qrcode.common.vo.BaseResponse;
import com.insigma.business.qrcode.soldier.dto.SoldierJobMessageInfoDTO;
import com.insigma.business.qrcode.soldier.dto.SoldierMessageInfoDTO;
import com.insigma.business.qrcode.soldier.dto.SoldierMessageInfoUpdateRequest;
import com.insigma.business.qrcode.soldier.dto.SoldierMessageStatusDTO;
import com.insigma.business.qrcode.soldier.request.*;
import com.insigma.business.qrcode.soldier._consumer.SoldierMessageInfoConsumer;
import com.insigma.business.qrcode.soldier._provider.SoldierMessageInfoProvider;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("soldierMessageInfoConsumer")
public class SoldierMessageInfoConsumerImpl implements SoldierMessageInfoConsumer {

    @Resource
    private SoldierMessageInfoProvider soldierMessageInfoProvider;

    
    @Override
    public BasePagingResponse<List<SoldierMessageInfoDTO>> searchSoldierMessageInfo(final SoldierMessageInfoSearchRequest searchRequest) {
        return soldierMessageInfoProvider.searchSoldierMessageInfo(searchRequest);
    }

    
    @Override
    public BaseResponse<SoldierMessageInfoDTO> getSoldierMessageInfo(final BaseGetRequest baseGetRequest) {
        return soldierMessageInfoProvider.getSoldierMessageInfo(baseGetRequest);
    }

    
    @Override
    public BaseResponse<String> insertSoldierMessageInfo(final SoldierMessageInfoInsertRequest insertRequest) {
        return soldierMessageInfoProvider.insertSoldierMessageInfo(insertRequest);
    }

    
    @Override
    public BaseResponse<Integer> updateSoldierMessageInfo(final SoldierMessageInfoUpdateRequest updateRequest) {
        return soldierMessageInfoProvider.updateSoldierMessageInfo(updateRequest);
    }

    
    @Override
    public BaseResponse<Integer> deleteSoldierMessageInfo(final BaseDeleteRequest deleteRequest) {
        return soldierMessageInfoProvider.deleteSoldierMessageInfo(deleteRequest);
    }

    @Override
    public BaseResponse<Integer> setMessageRead(String id, String soldierId) {
        return soldierMessageInfoProvider.setMessageRead(id, soldierId);
    }

    @Override
    public BaseResponse<List<SoldierMessageInfoDTO>> listRemindAndUnreadMessageInfo(String soldierUserId) {
        return soldierMessageInfoProvider.listRemindAndUnreadMessageInfo(soldierUserId);
    }

    @Override
    public BasePagingResponse<List<SoldierMessageInfoDTO>> searchMyMessage(SoldierMessageInfoSearchRequest soldierMessageInfoSearchRequest) {
        return soldierMessageInfoProvider.searchMyMessage(soldierMessageInfoSearchRequest);
    }

    @Override
    public BaseResponse<SoldierMessageStatusDTO> countNotReadMessage(String soldierUserId) {
        return soldierMessageInfoProvider.countNotReadMessage(soldierUserId);
    }

    @Override
    public BaseResponse<List<SoldierMessageInfoDTO>> listNotSignMessageOfPlacement(String soldierId) {
        return soldierMessageInfoProvider.listNotSignMessageOfPlacement(soldierId);
    }

    @Override
    public BaseResponse<String> addMessageOfPlacement(SoldierMessageInfoInsertRequest soldierMessageInfoInsertRequest) {
        return soldierMessageInfoProvider.addMessageOfPlacement(soldierMessageInfoInsertRequest);
    }

    @Override
    public BaseResponse<String> addMessageSignOfPlacement(CommonSignInfoInsertRequest request) {
        return soldierMessageInfoProvider.addMessageSignOfPlacement(request);
    }

    @Override
    public BaseResponse<Integer> publishMessage(SoldierMessageInfoUpdateRequest request) {
        return soldierMessageInfoProvider.publishMessage(request);
    }

    @Override
    public BasePagingResponse<List<SoldierJobMessageInfoDTO>> searchJobMessageStats(CommonLedgerStatsRequest request) {
        return soldierMessageInfoProvider.searchJobMessageStats(request);
    }

    @Override
    public BaseResponse<String> batchAddMessageOfPlacement(SoldierMessageInfoInsertRequest request) {
        return soldierMessageInfoProvider.batchAddMessageOfPlacement(request);
    }

}
